export default {
    state: {
        isPhone : false,    //是否为移动端设备
        phoneMaxWidth : 960,    //移动端最大宽度(平板也算移动端)
        openSlide : false,    //是否打开侧边栏
      },
      getters: {
        getIsPhont(state) {
            return state.isPhone
        },
        getOpenSlide(state){
          return state.openSlide
        }
      },
      mutations: {
        setIsPhone(state,newValue){
            state.isPhone = newValue
        },
        controlSlide(state){
          state.openSlide = !state.openSlide
          console.log(state.openSlide);
        }
      },
      actions: {
    
      }
}